home *** CD-ROM | disk | FTP | other *** search
- Path: gail.ripco.com!mambuhl
- From: mambuhl@ripco.com (Martin Ambuhl)
- Newsgroups: comp.lang.c
- Subject: Re: open vs fopen?
- Date: 9 Feb 1996 04:38:23 GMT
- Organization: Ripco Communications, Inc.
- Message-ID: <4fej3v$lv4@gail.ripco.com>
- NNTP-Posting-Host: golden.ripco.com
-
- sherlock@micronet.fr in <4f8qbg$549@chleuasme.francenet.fr> wrote:
-
-
- >because files opened using open and DOS files handles can be read and
- >write at the same time, while stdio files can't.
-
- Don't post merde as "answers."
-
- Assuming that you meant "without closing" instead of "at the same time,"
- since most disk drives don't provide for simultaneous reading and
- writing:
-
- Open your manual and check the fopen modes "r+","w+", and "a+".
- Hint: the '+' indicates "for update".
-
- If you were right, there are a lot of developers who need to know the
- source of your information. A non-commercial example (freely available)
- is the large persistant hashfile that GNU-chess uses.
-
- >suppose you have a database file, with fixed length fields.
- >low level functions(open...) enable the writing of some records and
- >the reading of other without closing the file.
-
- And so do the fopen modes for updating. Since there is no factual
- basis for your assertion that "stdio files" are inappropriate for such
- use, one must wonder where and why you picked this "information".
-
-
- --
- * Martin Ambuhl net: mambuhl@ripco.com
- * Chicago, IL (USA)
-